package at.fhooe.stefanirndorfer.effects;

public class LowPassFilter implements Filter{
	
	

	private static final float MAX_GAIN = 1.0f;
	float highFrequency_Gain;
	float lowPass_Gain;
	
	public LowPassFilter(float lowPass_Gain, float highFrequency_Gain){
		
		if(highFrequency_Gain > MAX_GAIN)
			highFrequency_Gain = MAX_GAIN;
		if(highFrequency_Gain < 0.0f)
			highFrequency_Gain = 0.0f;
		this.highFrequency_Gain = highFrequency_Gain;
		
		if(lowPass_Gain > MAX_GAIN)
			lowPass_Gain = MAX_GAIN;
		if(lowPass_Gain < 0.0f)
			lowPass_Gain = 0.0f;
		this.lowPass_Gain = lowPass_Gain;
	}
	

	public float getHighFrequency_Gain() {
		return highFrequency_Gain;
	}

	public void setHighFrequency_Gain(float highFrequency_Gain) {
		this.highFrequency_Gain = highFrequency_Gain;
	}

	public float getLowPass_Gain() {
		return lowPass_Gain;
	}

	public void setLowPass_Gain(float lowPass_Gain) {
		this.lowPass_Gain = lowPass_Gain;
	}
	
	
}
